package com.example.tuomin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import gov.jyy.xzxk.xksq.common.desensitization.annotation.DateNoDesensitize;
import gov.jyy.xzxk.xksq.common.desensitization.annotation.DefaultDesensitize;
import gov.jyy.xzxk.xksq.common.desensitization.annotation.IDCardNoDesensitize;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @className: MyObj
 * @description: TODO 类描述
 * @author: liangshijie
 * @date: 2023/4/25
 **/
@Data
@Builder
public class MyObj {

    @IDCardNoDesensitize
    private String sfz;
    @DefaultDesensitize
    private String name;

    @DefaultDesensitize
    private Integer age;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @DateNoDesensitize
    private LocalDate createdDate;
}
